package handler

import (
	"ticket-ride/model"

	"github.com/gin-gonic/gin"
)

func UserList(c *gin.Context) {

	var user []model.User
	list := model.DB.Find(&user)

	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "success",
		"data": list,
	})
	return
}
